# configure the way cmake works
function( GConfigureCMake )

	# add global include paths
	include_directories(${CMAKE_SOURCE_DIR}/Source/Engine)
	include_directories(${CMAKE_SOURCE_DIR}/Source/Foundation)

	# enables FOLDER property usage of targets
	set_property(GLOBAL PROPERTY USE_FOLDERS ON)
	
	# get rid of CMakePredefinedTargets folder in the solution
	set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "")
	
	# add option for log output directory
	set(G_OUTPUT_LOG_DIR "RunDir" CACHE STRING "Path to engine output log. Relative to source dir.")
	
	# add preprocessor for engine log file path
	add_definitions(-DG_ENGINE_LOG_FILE="${CMAKE_SOURCE_DIR}/${G_OUTPUT_LOG_DIR}/OutputLog.txt")

endfunction()

